﻿using System.Runtime.Serialization;
using Soul.Request;

namespace Soul.Command
{
    [DataContract]
    [KnownType(typeof(RequestContext))]
    [KnownType(typeof(CommandArgument))]
    [KnownType(typeof(IRequestCallback))]
    public class CommandRequestContext : RequestContext
    {
        public CommandRequestContext(CommandArgument commandArgument)
        {
            this.CommandArgument = commandArgument;
            //this.Callback = callback;
        }

        [DataMember]
        public CommandArgument CommandArgument { get; private set; }

        //[DataMember]
        //public IRequestCallback Callback { get; private set; }
    }
}
